package com.electromagnetic.industry.software.manage.pojo.other;

import com.electromagnetic.industry.software.manage.pojo.resp.FileTagInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class FileInfoVO {

    private String id;

    private String fileId;

    private String fileType;

    private String fileName;

    private String fileNote;

    private Integer fileVersion;

    private String parentId;

    private String categoryId;

    private Integer dataType;

    private Integer dataStatus;

    private Integer saveStatus;

    private long fileSize;

    private String fileSizeShow;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    private String fileCode;

    private String createdBy;

    private List<FileTagInfo> labels;

    private String dataOwn;

    // 是否是收藏数据，1是，0否
    private Integer isFavorite;

    // 是否是个人数据，1是，0否
    private Integer isPersonal;

    // 文件权限
    private Map<String, Boolean> permissions;
}
